HAL AES macro migration

This section provides information about the HAL CRYP macro migration.

HAL AES macros

HAL1

HAL2

__HAL_CRYP_ENABLE_IT(__HANDLE__, __INTERRUPT__)
void HAL_AES_EnableIT(hal_aes_handle_t *haes, uint32_t interrupt)
__HAL_CRYP_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)
uint32_t HAL_AES_GetITSource(const hal_aes_handle_t *haes,
                             uint32_t interrupt)
__HAL_CRYP_GET_FLAG(__HANDLE__, __FLAG__)
uint32_t HAL_AES_GetFlag(const hal_aes_handle_t *haes,
                         uint32_t flag)
__HAL_CRYP_ENABLE(__HANDLE__)
  • Removed; no user-facing macro in HAL2.

__HAL_CRYP_DISABLE(__HANDLE__)
  • Removed; no user-facing macro in HAL2.

__HAL_CRYP_RESET_HANDLE_STATE(__HANDLE__)
  • Removed; use HAL_AES_DeInit() instead when you need to reset all states.

__HAL_CRYP_DISABLE_IT(__HANDLE__, __INTERRUPT__)
__HAL_CRYP_CLEAR_IT(__HANDLE__, __INTERRUPT__)
void HAL_AES_DisableIT(hal_aes_handle_t *haes, uint32_t interrupt)
__HAL_CRYP_CLEAR_FLAG(__HANDLE__, __FLAG__)
Clear flag functions:
void HAL_AES_ClearFlagRDWRERR(hal_aes_handle_t *haes)
void HAL_AES_ClearFlagCC(hal_aes_handle_t *haes)
void HAL_AES_ClearFlagKERR(hal_aes_handle_t *haes)
void HAL_AES_ClearFlagRNGERR(hal_aes_handle_t *haes)
__HAL_CRYP_SET_OPERATINGMODE(__HANDLE__, __OPERATING_MODE__)
  • Removed; operating mode is set within HAL_AES_Encrypt() or HAL_AES_Decrypt().

__HAL_CRYP_SET_CHAININGMODE(__HANDLE__, __CHAINING_MODE__)
  • Removed; chaining mode is configured via specific set-config functions.

Related concept: Replaced multi-line macros with inline functions